home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Infinity Windoid 3.0 / InfinityWindoid.h < prev    next >
Text File  |  1995-02-20  |  3KB  |  66 lines

  1. // *****************************************************************************
  2. //
  3. //    InfinityWindoid.h
  4. //
  5. // —————————————————————————————————————————————————————————————————————————————
  6. //    DESCRIPTION:
  7. //        This file contains headers that can be used by an application using
  8. //        the Infinity Windoid WDEF.
  9. //
  10. //        In order to create a window using the Infinity Windoid WDEF, the
  11. //        constants in this file are useful.
  12. //
  13. //        For instance, if you want a new windoid with the titlebar down the
  14. //        left side of the window and no zoom or grow box:
  15. //
  16. //          theWindow = NewWindow(nil, bounds, title, visible, 
  17. //                                kInfinitySideProc, 
  18. //                                behind, goAwayFlag, refCon);
  19. //
  20. //        The goAwayFlag will determine if the windoid has a close box.
  21. // —————————————————————————————————————————————————————————————————————————————
  22. #ifndef Infinity_INFINITYWINDOID
  23. #define Infinity_INFINITYWINDOID
  24.  
  25.  
  26. // —————————————————————————————————————————————————————————————————————————————
  27. //
  28. //    Resource ID
  29. //
  30. // —————————————————————————————————————————————————————————————————————————————
  31. //         If you change the ID of the WDEF that is created, put that ID here.
  32. // —————————————————————————————————————————————————————————————————————————————
  33. enum {
  34.     kInfinityWindoidID = 128
  35. };
  36.  
  37.  
  38. // —————————————————————————————————————————————————————————————————————————————
  39. //
  40. //    Infinity Windoid procIDs (for NewWindow, etc.)
  41. //
  42. // —————————————————————————————————————————————————————————————————————————————
  43. //        Note that these procIDs reflect the System 7.5 floating window procID
  44. //        constants that are listed in Windows.h in the new Universal Headers.
  45. //        The only difference in the names is that these start with ‘kInfinity’ 
  46. //        while the 7.5 ones start with ‘float’ (as in ‘floatZoomProc’).
  47. //
  48. //        The defproc id (multiplied out) is listed in the comment alongside
  49. //        each constant so that you can find one easily if you want to use it
  50. //        in a ‘WIND’ resource.  (Note that these numbers are for an Infinity
  51. //        Windoid WDEF with a resource ID of 128.)
  52. // —————————————————————————————————————————————————————————————————————————————
  53. enum {
  54.     kInfinityProc                = kInfinityWindoidID * 16 +  1,        // == 2049
  55.     kInfinityGrowProc            = kInfinityWindoidID * 16 +  3,        // == 2051
  56.     kInfinityZoomProc            = kInfinityWindoidID * 16 +  5,        // == 2053
  57.     kInfinityZoomGrowProc        = kInfinityWindoidID * 16 +  7,        // == 2055
  58.     kInfinitySideProc            = kInfinityWindoidID * 16 +  9,        // == 2057
  59.     kInfinitySideGrowProc        = kInfinityWindoidID * 16 + 11,        // == 2059
  60.     kInfinitySideZoomProc        = kInfinityWindoidID * 16 + 13,        // == 2061
  61.     kInfinitySideZoomGrowProc    = kInfinityWindoidID * 16 + 15        // == 2063
  62. };
  63.  
  64.  
  65. // —————————————————————————————————————————————————————————————————————————————
  66. #endif